<?php
include 'bootstrap.php';
$F->checkAdmin();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<title>Администрирование</title>
<script type="text/javascript" src="<?=$F->getDirectoryName();?>/js/tiny_mce/tiny_mce.js"></script>
<link type="text/css" href="<?=$F->getDirectoryName();?>/css/trontastic/jquery-ui-1.7.1.custom.css" rel="Stylesheet" />	
<script type="text/javascript" src="<?=$F->getDirectoryName();?>/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="<?=$F->getDirectoryName();?>/js/jquery-ui-1.7.1.custom.min.js"></script>
<script type="text/javascript" src="<?=$F->getDirectoryName();?>/js/jquery.lightbox-0.5.pack.js"></script>
<link rel="stylesheet" type="text/css" href="<?=$F->getDirectoryName();?>/css/jquery.lightbox-0.5.css" media="screen" />
<script type="text/javascript">
tinyMCE.init({ 
mode : "textareas", 
elements : 'nourlconvert', 
theme : "advanced", 
plugins : 'advlink,advimage', 
content_css : "css/editor.css",
convert_urls : false 
});
</script>
</head>

<body class="page" style="font-size:12px;font-family:Verdana,Helvetica;">
<h1>Admin</h1>
<ul>
<?php
foreach (array_keys($F->adminLinks) as $item)
{
?>
<li><a href="<?php echo basename(__FILE__); ?>?actAdmin=<?=$item?>"><?=$F->adminLinks[$item]?></a></li>
<?php
}
?>
</ul>
<br />
<?php 
if (!empty($F->action))
{
	$F->modules[$F->action]->admin();
	
}
?>
</body>
</html>